Banner Grabbing Technique -A method used to gain information about a computer system on a network and the services (with version number) running on its open ports.
Banners are the welcome screens (text message received from the host) that divulge (to make public) software version numbers and other system information on network hosts.
Banner information include the operating system, the version number, and the specific service packs.
Banners can be grabbed using telnet or tools like nmap,netcat.
Common Service ports used for banner grabbing:
nc -v [target host] [port number]
-v = verbose
ncat [options] [hostname] [port]
3.TELNET (TELecommunication NETwork) is a network protocol used on the Internet or LAN. It allows a user to log in on any other computer on the network.
telnet [target_ip] [port]
port - port number of the service you wan to grab banner for
Nmap
nmap -sV --script=banner [target_ip] -p [port] -oX [filename.xml]
-p is optional,to grab banners for all services remove it
-sV = service details with version number
-oX = export banner grabbed in xml format
Shodan is a search engine for banners grabbed from portscanning the Internet and more.